<%@ Page language="c#" EnableViewState="false" Inherits="FlashBack.Web.ManageRoles" CodeFile="ManageRoles.aspx.cs" CodeFileBaseClass="FlashBack.Web.PageBase" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
    <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name=vs_defaultClientScript content="JavaScript (ECMAScript)">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
    <LINK REL="stylesheet" Type="text/css" HREF="FlashBack.css">
  </HEAD>
  <body>
	
    <form method="post" runat="server">
    <table width="100%" border="0" cellpadding="4" cellspacing="0">
		<tr>
			<td width="90%" class="Header">
				Manage Roles
			</td>
			<td class="Header">
			</td>
		</tr>
	</table>
	<div align="center"><h3> Available roles</h3></div>
	<div align="center">
		<asp:DataGrid ID="RolesGrid" CssClass="searchBody" Runat="server" AutoGenerateColumns="False" OnItemCommand="ItemCommand" BorderStyle="Solid" BorderColor="Green" Width="90%" CellPadding="4" OnItemDataBound="onRowBound">
		<HeaderStyle CssClass="bandHeader">
		</HeaderStyle>

		<Columns>
		<asp:BoundColumn DataField="Name" HeaderText="Name"></asp:BoundColumn>
		<asp:BoundColumn DataField="Note" HeaderText="Description"></asp:BoundColumn>
		<asp:TemplateColumn HeaderText="Actions" ItemStyle-HorizontalAlign="Right">
		<ItemTemplate>
				<asp:LinkButton ID="access" Runat="server" CommandName="ManageAccess" >Manage Access</asp:LinkButton> | 
		<asp:LinkButton ID="delete" Runat="server" CommandName="DeleteRole" >Delete</asp:LinkButton>
		</ItemTemplate>
		</asp:TemplateColumn>
		</Columns>
		</asp:DataGrid>
	</div>
	<br><br>

	<div align="center">
		<table Class="searchBody" width="50%" cellpadding="5">
		<tr><td colspan="2">
			<asp:Label ForeColor="Red" Font-Bold="True" Visible="False" ID="ErrorText" Runat="server">Error!</asp:Label>
		</td></tr>
		<tr><td nowrap >Role Name:</td><td width="80%"><asp:TextBox cssclass="searchInput" ID="newRoleName" Runat="server"></asp:TextBox></td></tr>
		<tr><td nowrap >Role Description:</td><td><asp:TextBox cssclass="searchInput" ID="newRoleDescription" Runat="server"></asp:TextBox></td></tr>
		<tr><td align="right" colspan="2"><asp:Button ID="newRole" Runat="server" Text="Add new Role" OnCommand="AddRole"></asp:Button></td></tr>
		</table>
	</div>

	</form>
</body>
</HTML>
